﻿namespace Common.Core.Attributes
{
    /// <summary>
    /// 优先级最高的注入
    /// </summary>
    public class HighestIoCAttribute : Attribute
    {
        /// <summary>
        /// 级别
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="level"></param>
        public HighestIoCAttribute() : this(0)
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="level"></param>
        public HighestIoCAttribute(int level)
        {
            Level = level;
        }
    }
}
